From: Jasper St. Pierre Date: Tue, 14 Feb 2012 19:22:50 +0000 (-0500) Subject: st-scroll-view: Remove unnecessary VISIBLE checks X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~7028 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=f9e456bb4740ee5fb303695d18a4d04766bd11cf;p=gnome-shell.git st-scroll-view: Remove unnecessary VISIBLE checks clutter_actor_paint already checks for VISIBLE before painting https://bugzilla.gnome.org/show_bug.cgi?id=670034 --- diff --git a/src/st/st-scroll-view.c b/src/st/st-scroll-view.c index e5de8c8c1..0b304a041 100644 --- a/src/st/st-scroll-view.c +++ b/src/st/st-scroll-view.c @@ -270,9 +270,9 @@ st_scroll_view_paint (ClutterActor *actor) CLUTTER_ACTOR_CLASS (st_scroll_view_parent_class)->paint (actor); /* paint our custom children */ - if (priv->hscrollbar_visible && CLUTTER_ACTOR_IS_VISIBLE (priv->hscroll)) + if (priv->hscrollbar_visible) clutter_actor_paint (priv->hscroll); - if (priv->vscrollbar_visible && CLUTTER_ACTOR_IS_VISIBLE (priv->vscroll)) + if (priv->vscrollbar_visible) clutter_actor_paint (priv->vscroll); } @@ -286,9 +286,9 @@ st_scroll_view_pick (ClutterActor *actor, CLUTTER_ACTOR_CLASS (st_scroll_view_parent_class)->pick (actor, color); /* paint our custom children */ - if (priv->hscrollbar_visible && CLUTTER_ACTOR_IS_VISIBLE (priv->hscroll)) + if (priv->hscrollbar_visible) clutter_actor_paint (priv->hscroll); - if (priv->vscrollbar_visible && CLUTTER_ACTOR_IS_VISIBLE (priv->vscroll)) + if (priv->vscrollbar_visible) clutter_actor_paint (priv->vscroll); }